package com.mcxx.modules.statistics.service.read;

import com.mcxx.modules.statistics.dao.read.ReportReadDao;
import com.mcxx.modules.statistics.dto.CompareMinDTO;
import com.mcxx.modules.statistics.dto.ComparePovertyDTO;
import com.mcxx.modules.statistics.dto.CompareTempDTO;
import com.mcxx.modules.statistics.dto.PovertyStatisticsDTO;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@TaTransactional(readOnly = true)
public class ReportReadService {

    @Autowired
    private ReportReadDao reportReadDao;

    public List<ComparePovertyDTO> getExCountyReportData(String areaCode, List<Integer> levels, String month, String bizType) {

        return reportReadDao.getExCountyReportData(areaCode, levels, month, bizType);
    }

    public List<ComparePovertyDTO> getExCityReportData(String areaCode, List<Integer> levels, String month, String bizType) {
        return reportReadDao.getExCityReportData(areaCode, levels, month, bizType);
    }

    public List<CompareMinDTO> getCountyLowerReportData(String areaCode, List<Integer> levels, String month, String bizType) {
        return reportReadDao.getCountyLowerReportData(areaCode, levels, month, bizType);
    }


    public List<CompareMinDTO> getCityLowerReportData(String areaCode, List<Integer> levels, String month, String bizType) {
        return reportReadDao.getCityLowerReportData(areaCode, levels, month, bizType);
    }

    public List<CompareTempDTO> getTempReportData(String areaCode, List<Integer> levels, String month) {
        return reportReadDao.getTempReportData(areaCode, levels, month);
    }
}
